
package com.fire.eyes.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.fire.eyes.dao.UserLoginMapper;
import com.fire.eyes.model.UserLoginModel;
import com.fire.eyes.service.IUserLoginService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.plugins.Page;

import java.util.List;
import java.util.Map;

/**
 * 用户登录Service
 *
 * @author Matthew
 * @Date 2019-01-21 19:43
 */
@Service
public class UserLoginServiceImpl extends ServiceImpl<UserLoginMapper, UserLoginModel> implements IUserLoginService{

    private static final Logger LOGGER = LoggerFactory.getLogger(UserLoginServiceImpl.class);

    @Autowired
    private UserLoginMapper userLoginMapper;

    @Override
    public UserLoginModel selectOne(UserLoginModel entity){
        return userLoginMapper.selectOne(entity);
    }

    @Override
    public List<UserLoginModel>selectList(UserLoginModel model){
        return userLoginMapper.selectListByModel(model);
    }

    @Override
    public Page<UserLoginModel> selectPage(int currentPage, int pageSize, Wrapper<UserLoginModel> wrapper){
        return selectPage(new Page<UserLoginModel>(currentPage,pageSize), wrapper);
    }

    @Override
    public Page<Map<String, Object>> selectMapsPage(int currentPage, int pageSize, Wrapper<UserLoginModel> wrapper){
        return selectMapsPage(new Page<UserLoginModel>(currentPage,pageSize), wrapper);
    }

}
